package com.hushi.impl;

import com.hushi.dao.CustomerDao;
import com.hushi.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class CustomerServiceImpl implements CustomerService {
    @Value("${url}")
    private String url;
    public void save(){
        System.out.println("测试扫包");
    }

    public void save1(){
        System.out.println("测试加载peoperties文件");
    }

    //        @Bean是一个方法级别上的注解，主要用在@Configuration注解的类里
    public CustomerDao getCustomerDao(){
        return new CustomerDaoImpl();
    }


}
